Premmerce\WoocommerceMulticurrency\Model\Model D

Total Complexity 151
Dependencies 5
Dependents 11
Total lines 1,376
Lines of code 663
Logical lines of code 395
Comment lines 348
Methods 49
Properties 3

Methods 49

Method Rating Maintainability Complexity Lines of code
saveProductCustomFields()
A
48 11 30
saveDefaultCurrencyCountries()
A
46 10 39
bulkActionsUpdatePrices()
A
49 7 31
updateExistingCurrency()
S
47 6 39
deleteProductsCurrenciesMetaFields()
S
52 6 24
insertCurrencyData()
S
53 6 23
updateProductData()
S
54 6 20
updateProductPrices()
S
55 5 19
bulkActionsPrepareProductPricesToSet()
S
56 5 18
getCurrencies()
S
56 5 17
addProductMetaFields()
S
51 4 26
increaseOrDecreaseProductPrice()
S
53 4 21
recalculateProductPrices()
S
55 4 18
updateDB()
S
51 3 31
deleteCurrency()
S
58 4 16
getCurrenciesToUpdateRates()
S
61 4 12
recalculateRates()
S
54 3 20
changeProductCurrency()
S
60 3 14
increaseOrDecreasePrice()
S
61 3 12
priceStringToFloat()
S
62 3 11
getPlaceholdersForCurrencyInsert()
S
54 2 22
getProductsIDs()
S
55 2 21
insertNewCurrency()
S
56 2 18
getWoocommerceCurrencyData()
S
57 2 16
getUpdaterIdForCurrency()
S
67 3 8
getProductCurrency()
S
70 3 5
getProductPriceInProductCurrency()
S
63 3 10
setProductPricesInProductCurrency()
S
70 3 6
bulkActionsUpdateVariablePrice()
S
62 2 11
getCurrencyById()
S
74 2 4
getRatesUpdaterCronScheduleTime()
S
74 2 4
getVariationPriceFromPost()
S
67 2 7
addCronSchedule()
S
64 2 10
setNewRates()
S
66 2 8
roundPriceByCurrencySettings()
S
71 2 5
invalidateWcProductPricesCache()
S
73 2 5
__construct()
S
73 1 5
getMainCurrency()
S
76 1 4
getMainCurrencyId()
S
79 1 3
getCountriesCurrenciesCodes()
S
77 1 4
getPriceFormat()
S
64 1 10
pluginTableExists()
S
78 1 3
currencyExists()
S
74 1 4
isLastAvailableForUsersCurrency()
S
71 1 5
setOrderCurrencyId()
S
69 1 7
getOrderCurrencyId()
S
74 1 4
fillMainCurrencyData()
S
68 1 6
cleanCache()
S
77 1 4
dropCurrenciesTable()
S
80 1 3